string fileName;
fileName = "c:\\zipfile\\test.pdf";
System.IO.Stream stream;
stream = System.IO.File.Create(fileName);
gcSpreadSheet1.Workbook.Name = "WorkBook";
gcSpreadSheet1.Sheets[0].Name = "Sheet 0";
GrapeCity.Windows.SpreadSheet.Data.PrintInfo printtest;
printtest = gcSpreadSheet1.Sheets[0].PrintInfo;
printtest.FooterCenter = "This is Page &P";
printtest.HeaderCenter = "&A of &F";
printtest.BestFitColumns = true;
printtest.UseMax = true;
GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test;
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings();
test.Title = "Print PDF";
test.Author = "GrapeCity, Inc.";
test.DisplayDocTitle = true;
test.FitWindow = true;
gcSpreadSheet1.SavePDF(stream, test, 0);